﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Diagnostics;
using System.ComponentModel;
using WPFExcelReport.Helpers;
using System.Windows.Input;
namespace WPFExcelReport
{
    public partial class WSUBTBOX
    {
    
        public WSUBTBOX()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWASTAMM();
            this.DataContext = MV; 
            InitializeComponent();
        }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
        }
        public override void OnSave()
        {
            switch(app.company)
            {
                case "SJH":
                    TMV.WAFFDDIK = TMV.WARFDDIK;
                    TMV.WAFFDDIS = TMV.WARFDDIS;
                    TMV.WAFBRTU = TMV.WARWBRT; 
                    break;
            }
            base.OnSave();
        }
    }
}
